package com.lzhsite.technology.designPattern.decorate.CoffeeDemo;

public class Sugar extends Decorator
{
    @Override
    public void showCoffee()
    {
        System.out.print("加糖");
        super.showCoffee();
    }

    @Override
    public double showPrice()
    {
        return 10.0 + super.showPrice();
    }
}
